package com.baizhi.shane.shane.service;

import com.baizhi.shane.shane.entity.ShaneCommentQuestion;
import com.baizhi.shane.shane.vo.CommentQuestionVO;
import com.baizhi.shane.sys.vo.SuccessedOutVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author wbz12
* @description 针对表【shane_comment_question(啥呢问题评论表)】的数据库操作Service
* @createDate 2023-07-25 22:33:37
*/
public interface ShaneCommentQuestionService extends IService<ShaneCommentQuestion> {

    /**
     * 获取指定问题下所有的评论
     *
     * @Author 闻柏智
     * @Date 15:27 2024/2/28
     * @Param questionId
     * @return java.util.List<com.baizhi.shane.shane.vo.CommentQuestionVO>
     **/
    List<CommentQuestionVO> getAllCommentByQuestionId(Long questionId);

    /**
     * 新增一个评论
     *
     * @Author 闻柏智
     * @Date 16:20 2024/2/28
     * @Param shaneCommentQuestion
     * @return com.baizhi.shane.sys.vo.SuccessedOutVO
     **/
    SuccessedOutVO insertOneComment(ShaneCommentQuestion shaneCommentQuestion);
}
